package mest.service.Modeling.Impl;

import mest.dao.Modeling.IprovideFileDao;
import mest.entity.provider_file;
import mest.service.Modeling.IprovideFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-16 0:11
 */

@Service
public class provideFileServiceImpl implements IprovideFileService {

    @Resource
    private IprovideFileDao ipfd;

    @Override
    public int insertProvideFile(provider_file pf)   {
        try {
            return ipfd.insertProvideFile(pf);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return 0;
    }

    @Override
    public int selectCount() {
        return ipfd.selectCount();
    }

    @Override
    public List<provider_file> findProvideFilePage(int index, int pageSize) {
        return ipfd.findProvideFilePage((index-1)*pageSize,pageSize);
    }
}
